package com.minglan.gfx.upload.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;

import com.minglan.gfx.app.upload.service.FileStorageService;

public class FileUploadConfiguration implements CommandLineRunner{
	
	@Autowired
	FileStorageService fileStorageService;

	public void run(String... args) throws Exception {
		fileStorageService.clear();
		fileStorageService.init();
	}
	
	

}
